/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.dealer.service;

import java.util.List;

import com.thinkgem.jeesite.modules.sys.entity.Dict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.fx.dealer.entity.FxWaresinfo;
import com.vivo.fx.dealer.dao.FxWaresinfoDao;

/**
 * 商品信息Service
 * @author jyangye
 * @version 2017-11-07
 */
@Service
@Transactional(readOnly = true)
public class FxWaresinfoService extends CrudService<FxWaresinfoDao, FxWaresinfo> {
    @Autowired
    private FxWaresinfoDao fxWaresinfoDao;

	public FxWaresinfo get(String id) {
		return super.get(id);
	}
	
	public List<FxWaresinfo> findList(FxWaresinfo fxWaresinfo) {
		return super.findList(fxWaresinfo);
	}
	
	public Page<FxWaresinfo> findPage(Page<FxWaresinfo> page, FxWaresinfo fxWaresinfo) {
		return super.findPage(page, fxWaresinfo);
	}

	public List<Dict> getDictList(String parentDictId) {
	    return fxWaresinfoDao.getDictList(parentDictId);
    }
	
	@Transactional(readOnly = false)
	public void save(FxWaresinfo fxWaresinfo) {
		super.save(fxWaresinfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(FxWaresinfo fxWaresinfo) {
		super.delete(fxWaresinfo);
	}
	
}